Abstract. We study a contracting model with unforeseen contingencies in which the court is an active player. Ex-ante, the contracting parties can-not include the risky unforeseen contingencies in the contract they draw up. Ex-post the court observes whether an unforeseen contingency occurred, and decides whether to void or uphold the contract. If the contract is voided by the court, the parties can renegotiate a new agreement ex-post. There are two effects of a court that voids contracts. The parties ’ incentives to undertake relationship-specific investment are reduced, and the parties enjoy greater insurance against the unforeseen contingencies that the ex-ante contract cannot account for. In this context, we fully characterize the optima...